package org.skipper.ai.enums;

/**
 * Created with IntelliJ IDEA.
 * Description: TODO
 *
 * @author shoujian
 * Date: 2025-10-09
 * Time: 15:56
 */
public enum AiTypeEnum {

    ALI_TONGYI(1,"阿里通义"),
    BAIDU_YUN(2, "百度云"),
    ;

    private Integer code;

    private String desc;

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    AiTypeEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }
    public static AiTypeEnum getByCode(Integer code){
        for (AiTypeEnum value : AiTypeEnum.values()) {
            if (value.getCode().equals(code)) {
                return value;
            }
        }
        return null;
    }
}
